﻿@model OrchardCore.Users.ViewModels.ForgotPasswordViewModel

@{
  ThemeLayout.Metadata.Alternates.Add("Layout__Login");

  ViewData.ModelState.TryGetValue("Email", out var email);
}
<form asp-controller="ResetPassword" asp-action="ForgotPassword" method="post">
  <v-card class="px-4">
    <v-card-title>@T["Forgot password"]</v-card-title>
    <v-card-subtitle>@T["A recovery link will be sent to the email address tied to your account."]</v-card-subtitle>
    <v-card-text>
        <v-text-field id="Email" name="Email"
        label="@T["Enter your email to reset password."]" value="@email?.AttemptedValue" error-messages="@(email?.Errors.FirstOrDefault()?.ErrorMessage)"></v-text-field>
    </v-card-text>
    <v-card-actions>
      @await RenderSectionAsync("AfterForgotPassword", required: false)
      <v-btn type="submit" x-large block color="success">@T["Send recovery email"]</v-btn>
    </v-card-actions>
  </v-card>
</form>



